import React from "react";
const Item = (props) => {
  return <div />;
};
Item.whyDidYouRender = true;
const Rerender = () => {
  const style = { marginLeft: 30 };
  const onClick = () => {
    console.log(1);
  };
  return (
    <Item style={style} onClick={onClick}>
      {[1, 2, 3].map((num) => (
        <div key={num}>{num}</div>
      ))}
    </Item>
  );
};
Rerender.whyDidYouRender = true;
export default Rerender;
